
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>礼物管理信息</title>
	<script src="<%=request.getContextPath() %>/manage/js/jquery-1.9.1.js"></script>
	<!-- 配置文件 -->
	
    <script type="text/javascript" charset="utf-8" src="../ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="../ueditor/ueditor.all.min.js"> </script>
    <style type="text/css">
        #ueditors{
            width:100%;
        }
        #checks{
            width:100%;
        }
        #checks input{
            width:90%;
        }
    </style>
<!-- 上传 -->
</head>
<body>
	<div class="modal fade" id="gdDetails" tabindex="-1" role="dialog"
		aria-labelledby="gdDetailsLabel" aria-hidden="true">
		<div class="modal-dialog" style="width: 90%;">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">礼品规格信息</h4>
				</div>
				<div class="modal-body">
					<!---***中部***-->
					<div align="left">
						<!--中上部-->
						<!---***图片滚动----对应的样式是rolling.css***-->
						<div align="center">
							<table width="99%">
								<tr>
									<td style="border-style: none; border-width: medium">
										<form id="giftDetail" method="post" name="giftDetail" class="jqtransform">
											<div align="left">
												<!--中上部-->
												<!---***图片滚动----对应的样式是rolling.css***-->
												<div align="center">

													<table class="table table-bordered" id="checks">

														<tr>
															<td style="text-align: right;width: 10%;"">编号</td>
															
															<td width="35%" colspan="2">
																<input type="hidden" id="giftInforId" required name="giftInfor.id" value="${giftInfor.id}" />
																<input type="hidden" id="gdCode" name="gdCode" value="${updateGD.gdCode }" />
																<input type="hidden" id="gdId" name="id" value="${updateGD.id }" />
																<input type="text" id="giftCode" name="giftCode" value="${updateGD.giftCode }" class="readonlyss" required />
															</td>
															
														<!-- </tr>
														<tr> -->
															<td style="text-align: right;width: 10%;">名称</td>
															<td width="40%" colspan="2"><input type="text" id="giftName" name="giftName" value="${updateGD.giftName }" class="readonlyss" required /></td>
															
														</tr>
														
														<tr>
															<td style="text-align: right;width: 10%;">规格名称</td>
															<td width="25%">
																<input type="text" id="gdName" name="gdName" value="${updateGD.gdName }" 
																class="inputxt Validform_error" datatype="*" errormsg="请填写信息！" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入规格名称</div>
								                            </td>
								                            
								                            
								                            <td style="text-align: right;">规格数量</td>
															<td >
																<input type="text" id="detailNum" name="detailNum" value="${updateGD.detailNum }"
																class="inputxt Validform_error" datatype="n" errormsg="请填写数字！" nullmsg="请填写信息！"/>
																
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入规格数量</div>
								                            </td>
								                            
														</tr>
														
														<tr>
															<td style="text-align: right;">零售价</td>
															<td>
																<input type="text" id="salePrice" name="salePrice" value="${updateGD.salePrice }"
																class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！"/> 
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入零售价</div>
								                            </td>											
														
														
															<td style="text-align: right;">图片</td>
															<td>
																<input type="text" id="pic" name="pic" value="${updateGD.pic }" 
																class="inputxt Validform_error" datatype="*" errormsg="请填写信息！" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入图片</div>
								                            </td>
														</tr>
														<tr>
															<td style="text-align: right;">成本价</td>
															<td>
																<input type="text" id="enterPrice" name="enterPrice" value="${updateGD.enterPrice }" 
																class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入成本价</div>
								                            </td>
														<!-- </tr>
														<tr> -->
															<td style="text-align: right;">折扣</td>
															<td>
																<input type="text" id="discount" name="discount" value="${updateGD.discount }" 
																class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入折扣</div>
								                            </td>
														</tr>
														
														<tr>
															<td style="text-align: right;">团购价</td>
															<td>
																<input type="text" id="groupPrice" name="groupPrice" value="${updateGD.groupPrice }"
																class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入团购价</div>
								                            </td>
														<!-- </tr>
														<tr> -->
															<td style="text-align: right;">包邮价</td>
															<td>
																<input type="text" id="mailPrice" name="mailPrice" value="${updateGD.mailPrice }" 
																class="inputxt Validform_error" datatype="de" errormsg="请填写正数或最多两位的小数" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入包邮价</div>
								                            </td>
														</tr>
														
														<tr>
															<td style="text-align: right;">库存量</td>
															<td>
																<input type="text" id="totals" name="totals" value="${updateGD.totals }" 
																class="inputxt Validform_error" datatype="n" errormsg="请填写数字！" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入库存量</div>
								                            </td>
															
															<td style="text-align: right;">高度</td>
															<td>
																<input type="text" id="height" name="height" value="${updateGD.height }" 
																class="inputxt Validform_error" datatype="n" errormsg="请填写数字！" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入高度</div>
								                            </td>
														</tr>
														<tr>
															<td style="text-align: right;">长度</td>
															<td>
																<input type="text" id="longiness" name="longiness" value="${updateGD.longiness }" 
																class="inputxt Validform_error" datatype="n" errormsg="请填写数字！" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入长度</div>
								                            </td>
															
															
															<td style="text-align: right;">宽度</td>
															<td>
																<input type="text" id="width" name="width" value="${updateGD.width }" 
																class="inputxt Validform_error" datatype="n" errormsg="请填写数字！" nullmsg="请填写信息！"/>
															</td>
															<td width="15%">
								                            	<div class="Validform_checktip">请输入宽度</div>
								                            </td>
														</tr>
														
														<tr>
															<td style="text-align: right;">颜色</td>
															<td colspan="2">
																<input type="text" id="color" name="color" value="${updateGD.color }"/>
															</td>
															
															
														</tr>
														
														
														<!-- 是否。。。 -->
														<tr>
															<td style="text-align: right;">团购</td>
															<td>
																<select name="isGroup" id="isGroup">
																	<c:choose>
																		<c:when test="${updateGD.isGroup==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														<!-- </tr>
														<tr> -->
															<td style="text-align: right;">套餐</td>
															<td>
																<select name="isPackage" id="isPackage">
																	<c:choose>
																		<c:when test="${updateGD.isPackage==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														</tr>
														
														<tr>
															<td style="text-align: right;">促销</td>
															<td>
																<select name="isPromote" id="isPromote">
																	<c:choose>
																		<c:when test="${updateGD.isPromote==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														<!-- </tr>
														
														<tr> -->
															<td style="text-align: right;">包邮</td>
															<td>
																<select name="isMail" id="isMail">
																	<c:choose>
																		<c:when test="${updateGD.isMail==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														</tr>
														
														<tr>
															<td style="text-align: right;">上架</td>
															<td>
																<select name="ispush" id="ispush">
																	<c:choose>
																		<c:when test="${updateGD.ispush==0}">
																			<option value="0" selected="selected">否</option>
																			<option value="1">是</option>
																		</c:when>
																		<c:otherwise>
																			<option value="0">否</option>
																			<option value="1" selected="selected">是</option>
																		</c:otherwise>
																	</c:choose>
																</select>
															</td>
														</tr>
													</table>
												</div>
												<div id="optBtn" class="modal-footer">
													<button id="saveBtn" type="submit" class="btn btn-primary btn82 btn_save2">保存</button>
													<button type="button" class="btn btn-default"
														data-dismiss="modal">关闭</button>
												</div>
											</div>
										</form>
									</td>
								</tr>
							</table>
						</div>
					</div>
					<!--**中中部**-->
					<div></div>
					<!----------------------********中部结束********---------------------------->
				</div>
				<div class="modal-footer"></div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal -->
	</div>

</body>
</html>


